package com.cqfae.deploycentral.app.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import tk.mybatis.mapper.common.BaseMapper;
import tk.mybatis.spring.mapper.MapperScannerConfigurer;


@Configuration
public class MapperConfig {
  
  private static final String MAPPER_PATH = "com.cqfae.deploycentral.app.dao.mapper";

  @Bean
  public MapperScannerConfigurer mapperScannerConfigurer() {
    MapperScannerConfigurer configure = new MapperScannerConfigurer();
    configure.setBasePackage(MAPPER_PATH);
    configure.setMarkerInterface(BaseMapper.class);
    return configure;
  }

}
